// — — — — — — — — — — — glwidget.h — — — — — — — — — —
#ifndef GLWIDGET_H
#define GLWIDGET_H
#include <QGLWidget>
class GLWidget : public QGLWidget
{
Q_OBJECT
public:
 explicit GLWidget(QWidget *parent = 0);
 signals:
public slots:


protected:
void initializeGL();
void resizeGL(int w, int h);
void paintGL();

void mousePressEvent(QMouseEvent *event);

GLuint backgroundimage;
QVector<QPoint> corners;
QVector<QPoint> anchors;
QImage tex;
void  init_corner_anchors(QVector<QPoint> &corners , QVector<QPoint>& anchors, QImage &img);
void init();



};
#endif // GLWIDGET_H
